export const RbacUserStatusValueEnum = {
  '0': '禁用',
  '1': '启用',
  '2': '离职',
};

export enum DataPermEnum {
  AllCompany = '0',
  DepartmentAndSubDepartments = '1',
  CurrentDepartment = '2',
  Individual = '3',
}

export const DataPermValueEnum: { [key: string]: string } = {
  [DataPermEnum.AllCompany]: '全公司',
  [DataPermEnum.DepartmentAndSubDepartments]: '部门及下级部门',
  [DataPermEnum.CurrentDepartment]: '当前部门',
  [DataPermEnum.Individual]: '个人',
};

export enum AuthGrantTypeEnum {
  AdminPhone = 'admin_phone',
  AdminPassword = 'password',
}

// export enum AuthModeEnum {
//   ADMIN_PHONE = 'admin_phone',
//   ADMIN_PASSWORD = 'admin_password',
// }

// export const AuthModeValueEnum: { [key in AuthModeEnum]: string } = {
//   [AuthModeEnum.ADMIN_PHONE]: '管理员手机登录',
//   [AuthModeEnum.ADMIN_PASSWORD]: '管理员用户名密码登录',
// };

export enum PermissionTypeEnum {
  Api = '0',
  Admin = '1',
  Open = '2',
}

export const PermissionTypeValueEnum = {
  [PermissionTypeEnum.Api]: 'Api 接口',
  [PermissionTypeEnum.Admin]: 'Admin 接口',
  [PermissionTypeEnum.Open]: 'Open 接口',
};

export enum MenuTypeEnum {
  Root = '0',
  Leaf = '1',
}

export enum SmsTypeEnum {
  FORGET_PASSWORD = '1',
  PHONE_LOGIN = '2',
}

export enum ShowTypeEnum {
  DEFAULT = 0,
  SILENT = 1,
}

export enum CorrelationTypeEnum {
  MENU = 1,
  BUTTON = 2,
}
